package com.sali.config;

import com.sali.netty.NettyClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: sali
 * @date: 2025/2/22 下午11:19.
 * @version: 1.0
 */
@Configuration
public class CommonConfig {

    @Autowired
    private NettyConfig nettyConfig;

    @Bean
    public NettyClient getNettyClient() {
        return new NettyClient(nettyConfig);
    }

}
